/*
 *  Copyright (C) 2010 glauco
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.balisunrise.common.abstracts;

import org.balisunrise.common.EntityActions;
import org.balisunrise.common.EntityGrid;

/**
 *
 * @author Glauco
 */
public abstract class AbstractEntitySelection extends AbstractVisualEntity{

    protected EntityGrid entityGrid;
    protected EntityActions entityActions;
    public static final String PROP_ENTITYGRID = "entityGrid";
    public static final String PROP_ENTITYACTIONS = "entityActions";

    /**
     * Get the value of entityActions
     *
     * @return the value of entityActions
     */
    public EntityActions getEntityActions() {
        return entityActions;
    }

    /**
     * Set the value of entityActions
     *
     * @param entityActions new value of entityActions
     */
    public void setEntityActions(EntityActions entityActions) {
        EntityActions oldEntityActions = this.entityActions;
        this.entityActions = entityActions;
        changeSupport.firePropertyChange(PROP_ENTITYACTIONS,
                oldEntityActions, entityActions);
    }

    /**
     * Get the value of entityGrid
     *
     * @return the value of entityGrid
     */
    public EntityGrid getEntityGrid() {
        return entityGrid;
    }

    /**
     * Set the value of entityGrid
     *
     * @param entityGrid new value of entityGrid
     */
    public void setEntityGrid(EntityGrid entityGrid) {
        EntityGrid oldEntityGrid = this.entityGrid;
        this.entityGrid = entityGrid;
        changeSupport.firePropertyChange(PROP_ENTITYGRID,
                oldEntityGrid, entityGrid);
    }

}
